import time
from random import random

from selenium.webdriver.common.by import By
from selenium.webdriver.firefox.service import Service as FirefoxService
# 自动下载对应的驱动
from selenium import webdriver
from webdriver_manager.firefox import GeckoDriverManager

driver = webdriver.Firefox(service=FirefoxService(GeckoDriverManager().install()))
#最大化窗口
driver.maximize_window()
driver.get("https://www.iviewui.com/view-ui-plus/component/form/select")

driver.find_element(By.XPATH,"//span[@class='ivu-select-placeholder']").click()
time.sleep(2)
driver.switch_to.frame()
time.sleep(10)
driver.close()